package com.sghd.fight.module.game.config;

import com.sghd.common.ramcache.IEntity;
import com.sghd.common.ramcache.anno.Cached;
import com.sghd.common.ramcache.anno.CachedSizes;
import com.sghd.common.ramcache.anno.Persister;
import com.sghd.common.ramcache.anno.Persisters;

import javax.persistence.*;

/**
 * @author frank
 * @date 2018-12-21 10:45
 * @desc 游戏公共配置表
 **/
@Entity
@Table(catalog = "bsdld_fight")
@Cached(size = CachedSizes.DEFAULT, persister = @Persister(Persisters.PRE_HOUR))
public class GameConfig implements IEntity<ConfigNames> {

    @Id
    @Enumerated(EnumType.STRING)
    @Column(name = "id", length = 50)
    private ConfigNames id;

    private String value;

    @Override
    public ConfigNames getId() {
        return id;
    }

    public void setId(ConfigNames id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
